package com.kitchen.ui.dialog.task
{
	import flash.display.BitmapData;
	import flash.display.Sprite;
	import flash.filters.GlowFilter;
	import flash.text.TextField;
	import flash.text.TextFieldAutoSize;
	import flash.text.TextFormat;
	import flash.text.TextFormatAlign;

	public class TaskContent extends Sprite
	{
		private var title:TextField;
		private var content:TextField;
		private var condition:TextField;
		private var prise:TextField;
		
		public function TaskContent(dialogSkin:BitmapData)
		{
			super();
			this.layout(dialogSkin);
		}
		
		private function layout(skin:BitmapData):void{
			var bg:TaskContentIcon = new TaskContentIcon(skin);
			this.addChild(bg);
			this.title = new TextField();
			this.title.x = 25;
			this.title.y = 18;
			this.title.width = 315;
			this.title.border = false;
			this.title.selectable = false;
			this.title.autoSize = TextFieldAutoSize.CENTER;
			var ttff:TextFormat = new TextFormat();
			ttff.font = '黑体';
			ttff.size = 16;
			ttff.color = 0xffffff;
			this.title.defaultTextFormat = ttff;
			this.title.text = '饮食店盛大开业典礼';
			this.title.filters = [new GlowFilter(0x6d4e31, 1, 4,4,4,1)];
			this.addChild(this.title);
			this.content = new TextField();
			this.content.width = 345;
			this.content.height = 70;
			this.content.multiline = true;
			this.content.wordWrap = true;
			this.content.selectable = false;
			var ctff:TextFormat = new TextFormat();
			ctff.font = '黑体';
			ctff.color = 0x6a6a6c;
			ctff.align = TextFormatAlign.LEFT;
			ctff.leading = 1;
			ctff.indent = 20;
			this.content.defaultTextFormat = ctff;
			this.content.text = '邀请尊贵的客人进行剪裁、奠基、开业,将获得餐饮联盟红包大礼1000贯金币。邀请尊贵的客人进行剪裁、奠基、开业,将获得餐饮联盟红包大礼1000贯金币。邀请尊贵的客人进行剪裁、奠基、开业,将获得餐饮联盟红包大礼1000贯金币。';
			this.content.x = 15;
			this.content.y = 95;
			this.addChild(this.content);
			this.condition = new TextField();
			this.addChild(this.condition);
			this.prise = new TextField();
			this.addChild(this.prise);
		}
		
	}
}